#coding=utf-8
__author__ = 'czq'
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
__author__ = 'czq'
from django.db import models


class Base_UserModel(models.Model):
    addTime=models.DateTimeField(u'添加时间',auto_now_add=True)
    modifyTime=models.DateTimeField(u'修改时间',auto_now=True)
    addUser=models.ForeignKey(User,verbose_name=u"添加人")
    site=models.ForeignKey(Site,verbose_name=u'网站',null=True,blank=True)
    class Meta:
        abstract = True
        ordering = ['-addTime']


class Base_TimeModel(models.Model):
    addTime=models.DateTimeField(u'添加时间',auto_now_add=True)
    modifyTime=models.DateTimeField(u'修改时间',auto_now=True)
    class Meta:
        abstract = True
        ordering = ['-addTime']